<%= link_to item.product.name, :action => "show",
            :controller => "products", :id => item.product.id %>
<br/>
<%= item.amount %>&nbsp;x, <%= number_to_currency(item.price * item.amount) %>
<% if !current_page?(:controller => "carts", :action => "checkout") %>
    <%= link_to "+", {:controller => "carts", :action => "add",
                      :id => item.product},
                :method => :post,
                :remote => true,
                :class => "cart_button"
    %>
    <%= link_to "–", {:controller => "carts", :action => "remove",
                      :id => item.product},
                :method => :delete,
                :remote => true,
                :class => "cart_button"
    %>
<% end %>